//
//  Api.swift
//  Exchange
//
//  Created by rui on 2018/5/28.
//  Copyright © 2018年 common. All rights reserved.
//

import Foundation

struct Api {
    
    struct Home {
        ///根据币种查询币对列表
        public static let coin = "/tradeInfo/getByCoinCode"
        public static let coinAllPair = "/tradeInfo/allTradeInfo"
        ///首页轮播图
        public static let banner = "/v1/banner/"
        ///版本更新
        public static let version = "/v1/app/version/lastVersion"
    }
    
    struct Exchange {
        ///创建委托单
        public static let tradeOrder = "/v1/tradeOrder/confirm"
        ///创建市价委托单
        public static let tradeMarket = "/v1/tradeOrder/confirm/current"
        ///撤销委托单
        public static let cancelOrder = "/v1/tradeOrder/cancelOrder"
        ///历史委托单
        public static let historyOrder = "/v1/tradeOrderHis/list"
        
    }
    
    struct Trade {
        ///法币支持的币种
        public static let coin = "/coin/otc/all/detail"
        ///币币支持的币种
        public static let Coincoin = "/coin/all/detail"
        ///广告列表
        public static let advertisingList = "/advertising/money_type/type"
        
        ///是否有未读消息
        public static let tradeMsg = "/wait_order/is_new_message"

        public static let appeal = "/order_appeal/"
        //发布广告
        public static let sendAdvert = "/advertising/"
        //我的广告
        public static let myAdvert = "/advertising/status"
        ///广告详情
        public static let advertisingDetail = "/advertising/detail"
        ///广告上架
        public static let advertistStatesUp = "/advertising/up/"
        ///广告下架
        public static let advertistStatesDown = "/advertising/down/"
        ///通过id获取广告详情
        public static let advertInformation = "/advertising/"
        
        ///储存待下单 （广告会话）
        public static let advertisingWaitrder = "/advertising/wait_order"
        
        ///根据用户id查询用户发布的广告
        public static let userAdvertising = "/advertising/user"
        ///根据用户id查询用户的法币交易信息
        public static let userInfo = "/advertising/user_trade_info"
        
        ///创建订单
        public static let createTradeOrder = "/trade_order/"
        ///取消订单
        public static let cancelTradeOrder = "/trade_order/cancel_order"
        ///评价订单
        public static let evaluateTradeOrder = "/trade_order/evaluate"
        ///确认付款
        public static let confirmPayOrder = "/trade_order/confirm_payment"

        ///释放币
        public static let tradeOrderReleaseCoin = "/trade_order/release_coin"
        ///通知释放币
        public static let tradeNotifyReleaseCoin = "/trade_order/notify_release"
        ///订单列表
        public static let tradeOrderList = "/trade_order/status"
        ///待下单列表
        public static let tradeWaitOrderList = "/wait_order/pages"
        ///删除待下单
        public static let tradeWaitOrderDelete = "/wait_order"
        ///待下单详情
        public static let tradeWaitOrderInfo = "/wait_order"
        ///我与他的订单列表
        public static let tradeRelatedOrderList = "/trade_order/user_id"
        ///订单详情
        public static let tradeOrderDetail = "/trade_order"
        
        ///修改待下单聊天界面时间
        public static let waitOrderUpdateMsg = "/wait_order/time"
        ///修改订单聊天界面时间
        public static let orderUpdateMsg = "/order_session/time"
    }
    
    struct Leveraged {
        ///查询币种规则
        public static let leverCoinRule = "/tradeInfo/getCoinRule"
        ///杠杆市价单
        public static let leverMarketOrder = "/v1/leverage/market/submit"
        ///杠杆限价单
        public static let leverLimitOrder = "/v1/leverage/limited/submit"
        ///杠杆当前委托
        public static let currentOrder = "/v1/leverage/entrustIng"
        ///杠杆持仓
        public static let positionOrder = "/v1/leverage/hold"
        ///撤销杠杆
        public static let leverCancel = "/v1/leverage/cancel"
        ///历史订单
        public static let leverHistory = "/v1/leverageHis/history"
        ///平仓
        public static let leverPosition = "/v1/leverage/eveningUp"
    }
    
    struct Mine {
        ///登陆
        public static let login = "/auth/authorize"
        ///退出登录
        public static let logout = "/v1/user/login_out"
        ///注册
        public static let register = "/auth/register"
        ///登陆验证谷歌
        public static let googleCheck = "/auth/google_login"
        ///刷新用户信息
        public static let userInfo = "/v1/user/user_info"
        ///刷新token
        public static let refreshToken = "/auth/refresh"
        public static let getImageCode = "/auth/create_image_code"
        ///发送邮件验证码
        public static let sendEmail = "/auth/send_sms_email"
        ///发送手机验证码
        public static let seneMobile = "/auth/send_sms_mobile"
        
        ///发送登录后手机验证码
        public static let sendUserMobile = "/v1/user/send_sms_mobile"
        ///发送登录号的邮箱
        public static let sendUserEmail = "/v1/user/send_sms_email"
        
        public static let security = "/v1/user/user_info"
        
        ///身份认证信息
        public static let identyInfor = "/v1/user/identity_auth_info"

        ///校验邮件验证码
        public static let checkEmail = "/auth/check_sms_email"
        ///校验手机验证码
        public static let checkMobile = "/auth/check_sms_mobile"
        ///更新密码
        public static let resetPwd = "/auth/find_pwd"
        ///登录密码
        public static let setPassWord = "/v1/user/update_login_pwd"
        ///绑定手机
        public static let bindTel = "/v1/user/bind_mobile"
        ///修改资金密码
        public static let changeCapital = "/v1/user/bind_trade_pwd"
        ///生成谷歌信息
        public static let googleInfor = "/v1/user/google_device"
        ///绑定谷歌
        public static let googleCerty = "/v1/user/bind_google_device"
        ///更新用户昵称
        public static let updateNickName = "/v1/user/update_nick_name"
        ///修改头像
        public static let updatePortrait = "/v1/upload"
        ///头像地址入库
        public static let generatePortrait = "/v1/user/portrait"
        ///关闭谷歌认证
        public static let closeGoogle = "/v1/user/close_google_auth"
        ///开启谷歌认证
        public static let openGoogle = "/v1/user/open_google_auth"
        ///绑定邮箱
        public static let openEmail = "/v1/user/bind_email"
        ///身份信息提交
        public static let identy = "/v1/user/identity_auth"
        
        ///币币帐号信息
        public static let coinInformation = "/v1/position/list"
        ///法币账户信息
        public static let legalInformation = "/v1/position/otc/list"
        ///杠杆帐号信息
        public static let leverInformation = "/v1/position/hl/list"
        ///发送BTC
        public static let sendCoinMoney = "/v1/position/draw"
        ///发送法币
        public static let sendLegalMoeny = "/v1/position/otc/transfer"
        ///法币资金流水
        public static let legalCash = "/v1/trade/detail/otc/list"
        ///币币资金流水
        public static let coinCash = "/v1/trade/detail/list"
        ///杠杆资金流水
        public static let leverCash = "/v1/trade/detail/hl/list"
        ///查询提现手续费
        public static let queryCharge = "/v1/misc/listByArray"
        ///拉黑用户
        public static let defriend = "/v1/user/black"
        ///取消拉黑用户
        public static let cancelDefriend = "/v1/user/chanel_black"
        ///取消信任某用户
        public static let cancelTrust = "/v1/user/chanel_trust"
        ///信任某用户
        public static let trust = "/v1/user/trust"
        ///法币账户转账到币币账户
        public static let legalOut = "/v1/position/otc/transfer"
        ///币币账户到法币账户
        public static let legalIn = "/v1/position/otc/recharge"
        ///币币账户到杠杆账户
        public static let leverIn = "/v1/position/hl/recharge"
        ///杠杆账户到币币账户
        public static let leverOut = "/v1/position/hl/transfer"
        ///杠杆-法币
        public static let leverToLegal = "/v1/position/otc/hlrecharge"
        ///法币到杠杆
        public static let legaltoLever = "/v1/position/otc/hltransfer"
        ///批量上传图片
        public static let upLoadFile = "/v1/batch_upload"
        ///高级认证
        public static let seniorIdentity  =  "/v1/user/senior_identity_auth"
        ///币种地址个数
        public static let coinAddressNumber = "/v1/user/coin_address_count"
        ///根据币种获取地址
        public static let getCoinAdress = "/v1/user/draw_address/"
        ///删除地址
        public static let delegateAddress = "/v1/user/delete_draw_address/"
        ///增加提币地址
        public static let addAddress = "/v1/user/add_draw_address"
        ///充值地址
        public static let recharge = "/v1/user/wallet_address"
        ///帮助中心目录
        public static let helplist = "/v1/coArticleCategory/getNodeListById"
        ///二级目录
        public static let helpDetaillist = "/v1/coArticle/getByCategoryId"
        ///查询帮助中心文章
        public static let helpSearchlist = "/v1/coArticle/getByKeyword"
        ///用户反馈
        public static let userFeedback = "/v1/userFeedback/add"
        ///币种地址校验
        public static let checkAddressStatus = "/v1/user/verify_address"
    }

}
